package com.xuchen.zhenyang.enums;

import java.util.HashMap;

public enum GoodsTypeEnum {
    DRY_POWDER(1, "干粉类"),
    LATEX_PAINT(2, "乳胶漆"),
    GLUE(3, "胶水"),
    ACCESSORIES(4, "辅料"),
    COLOR_PASTE(5, "色浆"),
    OTHERS(6, "其他");


    private int id;
    private String value;

    GoodsTypeEnum(int id, String value){
        this.id = id;
        this.value = value;
    }

    public int getId() {
        return this.id;
    }

    public String getValue() {
        return this.value;
    }

    public static HashMap<Integer,String> getMap(){
        HashMap<Integer,String> map=new HashMap<>();
        GoodsTypeEnum[] values = values();
        for (GoodsTypeEnum enums : values) {
            map.put(enums.id,enums.value);
        }
        return map;
    }

}
